package com.hytc.mymall.utils;

import java.security.MessageDigest;

public class MD5Utils
{
  public static String MD5(String paramString)
  {
    try
    {
      MessageDigest localMessageDigest = MessageDigest.getInstance("MD5");
      StringBuffer localStringBuffer = new StringBuffer();
      byte[] arrayOfByte = localMessageDigest.digest(paramString.getBytes());
      int i = arrayOfByte.length;
      for (int j = 0;; j++)
      {
        if (j >= i) {
          return localStringBuffer.toString();
        }
        String str = Integer.toHexString(0xFF & arrayOfByte[j]);
        if (str.length() < 2) {
          localStringBuffer.append("0");
        }
        localStringBuffer.append(str);
      }
//      return null;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
    return null;
  }
}



/* Location:           C:\Users\Joker\Desktop\classes_dex2jar.jar

 * Qualified Name:     com.sz.ydgy.utils.MD5Utils

 * JD-Core Version:    0.7.0.1

 */